package com.doxiaopu.students.component;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
@Data
@ApiModel(description= "基础信息")
public class BaseEntity implements Serializable {

    private static final long serialVersionUID = -8688294524848410042L;
    @ApiModelProperty(value = "创建者")
    private String createdUser; //创建者
    @ApiModelProperty(value = "创建时间")
    private Date createdTime;   //创建时间
    @ApiModelProperty(value = "修改者")
    private String modifiedUser;    //修改者
    @ApiModelProperty(value = "修改时间")
    private Date modifiedTime;  //修改时间

    public String getCreatedUser() {
        return createdUser;
    }

    public void setCreatedUser(String createdUser) {
        this.createdUser = createdUser;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public String getModifiedUser() {
        return modifiedUser;
    }

    public void setModifiedUser(String modifiedUser) {
        this.modifiedUser = modifiedUser;
    }

    public Date getModifiedTime() {
        return modifiedTime;
    }

    public void setModifiedTime(Date modifiedTime) {
        this.modifiedTime = modifiedTime;
    }

    @Override
    public String toString() {
        return "BaseEntity{" +
                "createdUser='" + createdUser + '\'' +
                ", createdTime=" + createdTime +
                ", modifiedUser='" + modifiedUser + '\'' +
                ", modifiedTime=" + modifiedTime +
                '}';
    }
}
